package com.ruoyi.system.domain.webgroup;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**总榜*/
public class GeneralList extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**该表的主键*/
    private Integer generalListId;
    /**记录总学习时长*/
    @Excel(name = "总学习时长")
//    @JsonFormat(pattern="D HH:mm:ss",timezone = "GMT+8")
//    @DateTimeFormat(pattern="D HH:mm:ss")
    private String generalListDatetime;
    /**用户id*/
    @Excel(name = "用户id")
    private Integer userId;

    /**用户详细信息*/
    private SysUser sysUser;
    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public GeneralList(Integer generalListId, String generalListDatetime, Integer userId) {
        this.generalListId = generalListId;
        this.generalListDatetime = generalListDatetime;
        this.userId = userId;
    }

    public GeneralList() {
    }

    public Integer getGeneralListId() {
        return generalListId;
    }

    public void setGeneralListId(Integer generalListId) {
        this.generalListId = generalListId;
    }

    public String getGeneralListDatetime() {
        return generalListDatetime;
    }

    public void setGeneralListDatetime(String generalListDatetime) {
        this.generalListDatetime = generalListDatetime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
